package com.zlx.sharelive.activity;

import androidx.recyclerview.widget.LinearLayoutManager;
import androidx.recyclerview.widget.RecyclerView;

import com.zlx.module_base.base_ac.BaseAc;
import com.zlx.sharelive.R;
import com.zlx.sharelive.adapter.CommonRecyclerViewAdapter;
import com.zlx.sharelive.adapter.CommonRecyclerViewHolder;

import java.util.ArrayList;
import java.util.List;

import butterknife.BindView;

/**
 * 银行卡
 */
public class BankCardAc extends BaseAc {

    @BindView(R.id.rv_data)
    RecyclerView rv_data;

    private List<String> mList = new ArrayList<>();
    private CommonRecyclerViewAdapter<String> mAdapter;

    @Override
    protected int getLayoutId() {
        return R.layout.ac_bank_card;
    }

    @Override
    public void initViews() {
        super.initViews();

        initRecyclerView();
    }

    private void initRecyclerView() {
        rv_data.setLayoutManager(new LinearLayoutManager(this));

        mAdapter = new CommonRecyclerViewAdapter<String>(this, mList) {
            @Override
            public void convert(CommonRecyclerViewHolder holder, String entity, int position) {

            }

            @Override
            public int getLayoutViewId(int viewType) {
                return 0;
            }
        };

        rv_data.setAdapter(mAdapter);
    }
}
